using UnityEngine;
using UnityEngine.EventSystems;

public class MoveBtn : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
    [SerializeField] PlayerController player;
    public void OnPointerDown(PointerEventData eventData)
    {
        //Debug.Log("down");
        player.forwardSpeed = Vector3.forward;
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        //Debug.Log("up");
        player.forwardSpeed = Vector3.zero;
    }
}
